From 8e81cbef2c96bd18ea4e98876eff56bf519c8a91 Mon Sep 17 00:00:00 2001 From: nana-4 Date: Sun, 22 Nov 2020 13:36:54 +0900 Subject: [PATCH] stacksidebar: Add missing .navigation-sidebar to the inner list Also don't set :show-separators, which is not applied in other sidebars. See https://gitlab.gnome.org/GNOME/gtk/-/issues/3382 --- gtk/gtkstacksidebar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkstacksidebar.c b/gtk/gtkstacksidebar.c index ef43761d62..f611d023fa 100644 --- a/gtk/gtkstacksidebar.c +++ b/gtk/gtkstacksidebar.c @@ -150,7 +150,7 @@ gtk_stack_sidebar_init (GtkStackSidebar *self) gtk_widget_set_parent (sw, GTK_WIDGET (self)); self->list = GTK_LIST_BOX (gtk_list_box_new ()); - gtk_list_box_set_show_separators (GTK_LIST_BOX (self->list), TRUE); + gtk_widget_add_css_class (GTK_WIDGET (self->list), "navigation-sidebar"); gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (sw), GTK_WIDGET (self->list)); -- 2.30.2